/**
 * @param points int整型二维数组 棋子坐标
 * @return bool布尔型
 */
function check(points) {
    let tagx = points[0][0];
    let tagy = points[0][1];
    if (points.every(v => v[0] === tagx)) {
        return true;
    } else if (points.every(v => v[1] === tagy)) {
        return true;
    } else if (points.every((v, i) => {
        if (i != 0) {
            return v[0] == points[i - 1][0] && v[1] == points[i - 1][1];
        } else {
            return true;
        }
    })) {
        return true;
    } else {
        return false;
    }
}